﻿<%@ Page Title="" Language="C#" MasterPageFile="~/m.master" AutoEventWireup="true" CodeFile="SetPublishingItem.aspx.cs" Inherits="SetPublishingItem" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
<script type="text/javascript">

    function GetBaoBei() {
        var cids = "";
        $("input[name=Cid]:checked").each(function () {
            cids += "," + $(this).val();
        });
        if (cids.length == 0) {
            alert("请先选择分类！");
            return;
        }
        $.ajax(
{
    type: "POST", contentType: "application/json",
    url: "/Account/Ws.asmx/GetItemsBySellerCids",
    data: "{sellerCids:'" + cids + "'}",
    dataType: 'json',
    error: function (XMLHttpRequest, textStatus, errorThrown) {
        //        alert(XMLHttpRequest.status);
        //        alert(XMLHttpRequest.readyState);
        alert(textStatus);
    },
    beforeSend: function () {
        $("#items").html("努力加载中，稍候<img src=/images/loading.gif>");
    },
    success: function (result) {
        var htmls = result['d'];
        if (htmls.length > 10)
            $("#ruku").show();
        $("#items").html(htmls);
        //alert(tempStr);
    }
});
    }
    function CheckAll()
{
    $("input[name=Cid]").attr("checked", $("#chkAll").attr("checked"));
}
</script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<h2>腾讯微博宝贝推广功能&nbsp;&gt;&gt;&nbsp;设置发布宝贝：</h2>
<div>
<fieldset class="fs">
    <legend>查询选项</legend>
    <span>请选择分类：</span>
    <input name="chkAll" type="checkbox" id="chkAll" onclick ="CheckAll();"/>全选 <hr />
<div id="cats"><asp:Literal ID="lbCats" runat="server"></asp:Literal></div>
    <span>标题关键字: </span>
    <span><input type="text" value="" name="q" id="searchtitle" title="searchtitle" style="width: 200px;" /></span>
    &nbsp;&nbsp;&nbsp;
    <input type="button" id="SearchItem" value="立即查询" onclick="GetBaoBei();" class="buttoncss" />
    <br />
    <br />
</fieldset>
</div>
<div class="red">
注：只有经过实名认证后才能正常转发。
</div>
<div id="ItemContent">
</div>
<div id="CommonPager" class="meneame">
</div>
<div style="margin-bottom: 10px;">
<label>
    <input type="checkbox" id="CheckAll0" />全选</label>
&nbsp;&nbsp;&nbsp;
<input type="button" id="Start" class="buttoncss" value="一键转发" title="一键转发" />
<input type="hidden" id="plans" value="" />
</div>
</asp:Content>

